package ${package}.${module.packageName}.service.impl;

import java.util.List;

<@point name="JAVA:IMPORT" />

<#assign classComment = "${module.explain}业务接口实现">
<#include "../../javadoc/classComment.ftl">
@Service
public class ${module.name}ServiceImpl implements ${module.name}Service{
	
	<@point name="JAVA:MEMBER" />
	
	<@point name="JAVA:METHOD_ANNOTATION:ADD" />
	public void add${module.name}(${module.name} ${module.name ? uncap_first}){
		<@point name="JAVA:METHOD_BODY:PRE_ADD" />
		<@point name="JAVA:METHOD_BODY:ADD" />
	}
	
	<@point name="JAVA:METHOD_ANNOTATION:UPDATE" />
	public void update${module.name}(${module.name} ${module.name ? uncap_first}){
		<@point name="JAVA:METHOD_BODY:UPDATE" />
	}
	
	<@point name="JAVA:METHOD_ANNOTATION:DELETE" />
	public void delete${module.name}(String[] ids){
		<@point name="JAVA:METHOD_BODY:DELETE" />
	}
	
	public ${module.name} get${module.name}(String id){
		<@point name="JAVA:METHOD_BODY:GET" default="return null;"/>
	}
	
	public List<${module.name}> list${module.name}(${module.name}Query query){
		<@point name="JAVA:METHOD_BODY:LIST" default="return null;"/>
	}
	
	<@point name="JAVA:METHOD"/>
}